package com.salton123.qa.demo;

import android.app.Application;

import com.qw.soul.permission.SoulPermission;
import com.salton123.qa.QualityAssistant;
import com.salton123.qa.QualityContext;
import com.salton123.qa.kit.IKit;

import org.jetbrains.annotations.NotNull;

import java.util.List;

/**
 * User: newSalton@outlook.com
 * Date: 2018/10/10 3:18 PM
 * ModifyTime: 3:18 PM
 * Description:
 */
public class LeakCanaryApp extends Application {

    @Override
    public void onCreate() {
        super.onCreate();
        SoulPermission.init(this);
        QualityAssistant.install(new QualityContext(this) {
            @Override
            public boolean isShowCrashPanel() {
                return super.isShowCrashPanel();
            }

            @Override
            public boolean isBlockCanaryEnable() {
                return super.isBlockCanaryEnable();
            }

            @NotNull
            @Override
            public List<IKit> addSelfKits() {
                return super.addSelfKits();
            }
        });
    }
}